package com.wms.controller;

import com.wms.bean.ResultBean;
import com.wms.core.R;
import com.wms.mapper.PdaOutMapper;
import com.wms.service.PdaOutService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@Api(tags = "PDA手机端出库")
@RestController
public class PdaOutController {
    @Autowired
    PdaOutService pdaOutService;

    @ApiOperation("退货出库查询")
    @GetMapping("/pdaOutZhi")
    public ResultBean zhijie(){
        List<Map> list=pdaOutService.zhijie();
        return R.success("查询直接出库",list);
    }

    @ApiOperation("退货出库明细")
    @GetMapping("/pdaOutZJlist")
    public ResultBean ZJlist(String taskCode){
        List<Map> list=pdaOutService.ZJlist(taskCode);
        return R.success("直接出库明细",list);
    }
}
